// let loginRoute = allRoutes.find((item) => item.path === "/login");
// let page404Route = allRoutes.find((item) => item.path === "*");
let loginRoute = {
  //登录页
  path: "/login",
  name: "Login",
  component: () => import(/*webpackChunkName:'Login'*/ "../views/Login/index"),
};
let page404Route = {
  //404
  path: "/404",
  name: "404",
  component: () => import(/* webpackChunkName: "404" */ "../views/404.vue"),
};
let page404 = { path: "*", redirect: "/404" };
// let dynamicRoute = {
//   path: "/",
//   children: [],
//   component: () => import(/*webpackChunkName:'layout'*/ "../views/Layout.vue"),
// };

// export default [loginRoute, page404Route, page404, dynamicRoute];
export default [loginRoute, page404Route, page404];
// export default [loginRoute, page404Route];
